const app = getApp();
var request = require("../../utils/request.js");
Page({

  data: {
    showIOSDialog: false,
    tasks: null,
    baseUrl: null
  },

  onLoad: function () {
    var that = this
    var baseUrl = wx.getStorageSync('baseUrl')
    //查出自己发布的任务
    request.post('/myPublic/selMyPublic', {}, function (res) {
      if (res.code === 200) {
        console.log(res.data)
        that.setData({
          tasks: res.data,
          baseUrl: baseUrl
        })
      }
    })
  },
  clickMore: function () {
    this.setData({
      showIOSDialog: true
    });
  },
  close: function () {
    this.setData({
      showIOSDialog: false
    });
  },
})